package edu.jamestang.yeb.config;

import io.minio.MinioClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author JamesTang
 * @date 2021/12/31 12:58
 */
@Configuration
public class MinioConfig {

    private final String IP = "http://118.178.239.179:9000";
    private final String ACCESS_KEY = "james";
    private final String SECRET_KEY = "252566pypy";


    @Bean
    public MinioClient minioClient(){
        return MinioClient.builder().endpoint(IP).credentials(ACCESS_KEY,SECRET_KEY).build();
    }
}
